﻿using System.Collections.Generic;
using System.Security.Principal;

namespace Simple.CMS.Web.Authorization
{
    public class AdminIdentity : IIdentity
    {

        public AdminIdentity()
        {
            Roles = new List<string>();
        }

        public List<string> Roles { get; set; }

        public string AuthenticationType { get { return "AdminIdentity"; } }

        public int UserId { get; set; }

        public bool IsAuthenticated { get { return UserId > 0; } }

        public string Name { get; set; }
                
    }
}
